This is the documentation for the Realbasic Plugins from Monkeybreadsoftware.de. You find these plugins and the newest version of this document at http://www.monkeybreadsoftware.de/realbasic inside the plugins section.
This help was last updated on Freitag, 6. September 2002 and covers 2136 items: 126 classes, 2 controls and 583 global functions.
The list of the themes | Global methods by category | Global methods by name | The list of the classes | The list of the controls |
class CPUInfo | ||||
class, CPUInfo | So, 28. Apr 2002 | |||
Mac OS Classic: Works. | Mac OS Carbon: Works. | Windows: Works. | ||
Function:
A class for Information about the CPU. | ||||
BusSpeed as Integer | ||||
method, CPUInfo | So, 28. Apr 2002 | |||
Mac OS Classic: Works. | Mac OS Carbon: Should work. | Windows: returns allways -1. | ||
Function:
Returns the speed of the System bus in Hz. | ||||
Example:
dim c as cpuinfo c=new cpuInfo msgBox format(c.BusSpeed/1000000.0,"0")+" MHz" | ||||
CPUCount as Integer | ||||
method, CPUInfo | So, 28. Apr 2002 | |||
Mac OS Classic: Works. | Mac OS Carbon: Works. | Windows: Works. | ||
Function:
Returns the number of the installed CPUs. | ||||
Example:
dim c as cpuinfo c=new cpuInfo msgBox "You have "+str(c.cpucount)+" CPU(s) built into your computer." | ||||
CPUName as String | ||||
method, CPUInfo | So, 28. Apr 2002 | |||
Mac OS Classic: Works. | Mac OS Carbon: Works. | Windows: Works. | ||
Function:
Returns the name of the first CPU. | ||||
Example:
dim c as cpuinfo c=new cpuInfo msgbox c.CPUName | ||||
Notes:
Possible values on Mac: PowerPC 601 PowerPC 603 PowerPC 604 PowerPC 603e PowerPC 603ev PowerPC 750 (G3) PowerPC 604e PowerPC 604ev PowerPC 7400 (G4) For Windows you get something like "586, Level: 6, Rev: 2052" which is on Virtual PC 5.0 a Pentium II MMX. | ||||
CPUSpeedHz as Integer | ||||
method, CPUInfo | So, 28. Apr 2002 | |||
Mac OS Classic: Works. | Mac OS Carbon: Should work. | Windows: returns allways -1. | ||
Function:
Returns the Speed of the main CPU in Hz. | ||||
Example:
dim c as cpuinfo c=new cpuInfo msgbox "Your main CPU has "+format(c.CPUSpeedHz/1000000.0,"0")+" MHz" | ||||
CurrentProcessorSpeed as Integer | ||||
method, CPUInfo | So, 28. Apr 2002 | |||
Mac OS Classic: Works. | Mac OS Carbon: Works. | Windows: returns allways -1. | ||
Function:
Returns the current Speed of the main CPU. | ||||
Example:
dim c as cpuinfo c=new cpuInfo msgbox "Your main CPU runs currently at "+format(c.CurrentProcessorSpeed/1000000.0,"0")+" MHz" | ||||
Notes:
Returns 0 if this feature is not supported (e.g. on a desktop G4). | ||||
FullProcessorSpeed as Boolean | ||||
method, CPUInfo | So, 28. Apr 2002 | |||
Mac OS Classic: Works. | Mac OS Carbon: Should work. | Windows: returns allways false. | ||
Function:
Returns true if the CPU is running at full speed. | ||||
Example:
dim c as cpuinfo c=new cpuInfo b=c.FullProcessorSpeed | ||||
Notes:
Only used on Powerbooks. | ||||
MaximumProcessorSpeed as Integer | ||||
method, CPUInfo | So, 28. Apr 2002 | |||
Mac OS Classic: Works. | Mac OS Carbon: Works. | Windows: returns allways -1. | ||
Function:
Returns the maximum Speed of the main CPU. | ||||
Example:
dim c as cpuinfo c=new cpuInfo msgbox "Your main CPU runs maximum at "+format(c.MaximumProcessorSpeed/1000000.0,"0")+" MHz" | ||||
Notes:
Returns 0 if this feature is not supported (e.g. on a desktop G4). | ||||
MinimumProcessorSpeed as Integer | ||||
method, CPUInfo | So, 28. Apr 2002 | |||
Mac OS Classic: Works. | Mac OS Carbon: Works. | Windows: returns allways -1. | ||
Function:
Returns the minimum Speed of the main CPU. | ||||
Example:
dim c as cpuinfo c=new cpuInfo msgbox "Your main CPU runs minimum at "+format(c.MinimumProcessorSpeed/1000000.0,"0")+" MHz" | ||||
Notes:
Returns 0 if this feature is not supported (e.g. on a desktop G4). | ||||
ProcessorCyclingEnabled as Boolean | ||||
method, CPUInfo | Sa, 27. Jul 2002 | |||
Mac OS Classic: Works. | Mac OS Carbon: Should work. | Windows: returns allways false. | ||
Function:
Returns whether ProcessorCycling is enabled to save energy. | ||||
Example:
dim c as cpuinfo c=new cpuInfo b=c.ProcessorCycling | ||||
Notes:
ProcessorCycling saves time but slows down performance. | ||||
SetProcessorSpeed(full as boolean) as boolean | ||||
method, CPUInfo | So, 28. Apr 2002 | |||
Mac OS Classic: Works. | Mac OS Carbon: Works. | Windows: does nothing and returns false | ||
Function:
Set the CPU speed to full or reduced speed. | ||||
Example:
dim c as cpuinfo c=new cpuInfo c.SetProcessorSpeed true | ||||
Notes:
Only usefull on Powerbooks which can reduce CPU speed like the iBooks. | ||||
UsedCPUs as Integer | ||||
method, CPUInfo | So, 28. Apr 2002 | |||
Mac OS Classic: Works. | Mac OS Carbon: Works. | Windows: Works. | ||
Function:
Returns the number of the currently used CPUs. | ||||
Example:
dim c as cpuinfo c=new cpuInfo msgBox "You are using "+str(c.UsedCPUs)+" CPU(s) in your computer." | ||||
Notes:
There may be a CPU deactivated for power saving. |
Written 2002 by Christian Schmitz. Feel free to ask or report mistakes to realbasic@macsw.de.
Thanks.